<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>时针分针的计算</title>
</head>
<body>
<script>
    function consult(hour,time){
        var hourDeg=30 * hour + time/60 * 30;
        var time=6 * time;
        return Math.abs(time-hourDeg);
    }
    var deg=consult(5,35);
</script>
</body>
</html>